package com.qingcloud.adminbackend.entity.sysstationmo;

import cn.hutool.core.util.StrUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @program admin-backend
 * @description:
 * @author: Destiny
 * @create: 2020/05/07 15:01
 */
@Data
public class AddStationMo implements Serializable {

    @ApiModelProperty(value = "ID")
    private String moId;

    @ApiModelProperty(value = "中文名称")
    private String capation;

    @ApiModelProperty(value = "英文名称")
    private String capationEn;

    @ApiModelProperty(value = "父级")
    private String parentId;

    @ApiModelProperty(value = "省市区")
    private String domainId;

    @ApiModelProperty(value = "所属")
    private String address;

    @ApiModelProperty(value = "层级")
    private Integer moType;

    @ApiModelProperty(value = "类型")
    private Integer showType;

    @ApiModelProperty(value = "纬度")
    private float lat;

    @ApiModelProperty(value = "经度")
    private float lng;

    @ApiModelProperty(value = "横图")
    private String picHorizontal;

    @ApiModelProperty(value = "横图")
    private String picVertical;

    @ApiModelProperty(value = "位置缩略图")
    private String moThumb;

    @ApiModelProperty(value = "排序")
    private Integer orderBy;

    @ApiModelProperty(value = "Attr List")
    private List<AddStationMoAttr> attrList;

    public String getParentId() {
        return StrUtil.isBlank(parentId) ? null : parentId;
    }
}

